home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_17.lha
/
6_17
/
6_17a17.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
399b
|
19 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ x = (v1 == v2)
nt operator==(vector &v1, vector &v2)
if (v1.p->length != v2.p->length)
return 0;
int l = v1.p->length;
float *f1 = v1.p->f;
float *f2 = v2.p->f;
for (int i = 0; i < l; i++)
if (*f1++ != *f2++)
return 0;
return 1;